import { Module } from '@nestjs/common';
import { MusicModule } from './music/music.module';
import { MongoModule } from './mongo/mongo.module';
import { RoomController } from './room/room.controller';
import { RoomService } from './room/room.service';
import { NestjsFormDataModule } from 'nestjs-form-data';
import { MessageModule } from './message/message.module';
import { LoggerModule } from './logger/logger.module';
import { ConfigModule } from '@nestjs/config';

@Module({
  imports: [
    MusicModule,
    MongoModule,
    NestjsFormDataModule.config({ isGlobal: true }),
    MessageModule,
    LoggerModule,
    ConfigModule.forRoot({ isGlobal: true }),
  ],
  controllers: [RoomController],
  providers: [RoomService],
})
export class AppModule {}
